// 示例：Dry-Run（不提交），仅构造并打印 payload，便于联调校验
import { LiveEvent, LiveUpdater } from '../App';

async function pushDryRunDemo() {
  const live = LiveEvent.getInstance();
  await live.useTestData(true);

  const cur = live.getCurrentMatch();
  if (!cur) {
    console.log('无当前比赛，跳过');
    return;
  }

  // 只构造 payload，不提交
  const payload = LiveUpdater.buildPayloadFromMatch(cur, {
    teamA: 3,
    teamB: 2,
  });
  console.log('[pushDryRunDemo] 将要提交的 payload:');
  console.log(JSON.stringify(payload, null, 2));
}

pushDryRunDemo().catch(console.error);
